package com.ruoyi.applet.product.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

/**
 * 产品对象 product
 * @author ruoyi
 * @date 2024-11-20
 */
public class Product extends BaseEntity {
    
    private static final long serialVersionUID = 1L;
    
    /** 产品id */
    private Long id;
    
    /** 分类id */
    @Excel(name = "分类id")
    private Long categoriesId;
    
    /** 编码 */
    @Excel(name = "编码")
    private String encode;
    
    /** 标题 */
    @Excel(name = "标题")
    private String title;
    
    /** 描述 */
    private String description;
    
    /** 图片地址，集合JSON，第一个是封面 */
    private String picturesPath;
    
    /** 详情 */
    private String details;
    
    /** 附加信息 */
    private String additionalInfo;
    
    /** 销量 */
    @Excel(name = "销量")
    private Long salesVolume;
    
    /** 状态 */
    @Excel(name = "状态")
    private Integer status;
    
    
    private String categories;
    
    private BigDecimal price;
    private String specificationName;
    private Long specificationId;
    private String unit;
    
    private List<String> picturesPathList;
    
    private List<ProductSpecifications> specificationsList;
    
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getCategoriesId() {
        return categoriesId;
    }
    
    public void setCategoriesId(Long categoriesId) {
        this.categoriesId = categoriesId;
    }
    
    public String getEncode() {
        return encode;
    }
    
    public void setEncode(String encode) {
        this.encode = encode;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getPicturesPath() {
        return picturesPath;
    }
    
    public void setPicturesPath(String picturesPath) {
        this.picturesPath = picturesPath;
    }
    
    public String getDetails() {
        return details;
    }
    
    public void setDetails(String details) {
        this.details = details;
    }
    
    public String getAdditionalInfo() {
        return additionalInfo;
    }
    
    public void setAdditionalInfo(String additionalInfo) {
        this.additionalInfo = additionalInfo;
    }
    
    public Long getSalesVolume() {
        return salesVolume;
    }
    
    public void setSalesVolume(Long salesVolume) {
        this.salesVolume = salesVolume;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public String getCategories() {
        return categories;
    }
    
    public void setCategories(String categories) {
        this.categories = categories;
    }
    
    public BigDecimal getPrice() {
        return price;
    }
    
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    
    public String getSpecificationName() {
        return specificationName;
    }
    
    public void setSpecificationName(String specificationName) {
        this.specificationName = specificationName;
    }
    
    public Long getSpecificationId() {
        return specificationId;
    }
    
    public void setSpecificationId(Long specificationId) {
        this.specificationId = specificationId;
    }
    
    public String getUnit() {
        return unit;
    }
    
    public void setUnit(String unit) {
        this.unit = unit;
    }
    
    public List<String> getPicturesPathList() {
        return picturesPathList;
    }
    
    public void setPicturesPathList(List<String> picturesPathList) {
        this.picturesPathList = picturesPathList;
    }
    
    public List<ProductSpecifications> getSpecificationsList() {
        return specificationsList;
    }
    
    public void setSpecificationsList(List<ProductSpecifications> specificationsList) {
        this.specificationsList = specificationsList;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoriesId", getCategoriesId())
                .append("encode", getEncode())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("picturesPath", getPicturesPath())
                .append("details", getDetails())
                .append("additionalInfo", getAdditionalInfo())
                .append("salesVolume", getSalesVolume())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
